import {
	createRouter,
	createWebHashHistory
} from "vue-router";


const routes = [
	{
		path: "/",
		redirect: "/index"
	},
	{
		path: "/index",
		name: "index",
		component: ()=> import('@/views/index.vue')
	},
	{
		path: "/404",
		name: "404",
		component: ()=> import('@/views/404.vue')
	},
	{
		path: "/:pathMatch(.*)*",
		redirect: "/404"
	},
]

const router = createRouter({
	history: createWebHashHistory(),
	routes: routes
})

export default router